#!/bin/sh


#for j in lll saxpy daxpy;
for j in lll;
do 
	echo $j
	for i in `find Tests/$j -perm /u=x,g=x,o=x -type f`; 
	do
		echo "instrumenting $i..."
		../../../pin -t ./profiler.so -- $i
		name=`basename $i`
		mv inscount.out $name.output
		echo "output stored in $name.output"
		echo -e "done with $i...\n"
	done
done
